﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace sonic.Samples.Infrastructure.Model
{
    public class Location : DomainObject
    {
        private DateTime _When;
        private Coordinates _Where;

        public DateTime When
        {
            get { return _When; }
            set {
                _When = value;
                NotifyPropertyChanged("When");
            }
        }

        public Coordinates Where
        {
            get { return _Where; }
            set {
                _Where = value;
                base.NotifyPropertyChanged("Where");
            }
        }

        public Location(string description, DateTime when, Coordinates where)
        {
            this.DisplayName = description;
            this.When = when;
            this.Where = where;
        }
        
    }
}
